import httpRequest from '../lib/request.js'

export const login = (params, opt) => {
  httpRequest.post('/login', params, opt)
}

export const detail = (params, opt) => {
  httpRequest.get('/user/detail', params, opt, true)
}

export const allProducts = (params, opt) => {
  httpRequest.post('/user/all_products', params, opt, true)
}